package com.baor.controller;

import com.baor.service.AccountTransactionsService;
import com.baor.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/accountTransactions")
public class AccountTransactionsController {

    @Autowired
    private AccountTransactionsService accountTransactionsService;

    @RequestMapping("/transactions")
    public R transactions(@RequestBody Map<String, Object> params) {
        // 修复静态方法调用错误
        return accountTransactionsService.transactions(params);
    }
}
